/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.insurance;

/**
 *
 * @author Zeus
 */
public class InsuranceImpl implements Insurance {

    @Override
    public boolean age(int age) {
        return (age <= 55);
    }

    @Override
    public boolean salary(double sal) {
        return (sal >= 15000.00);
    }

    @Override
    public boolean canGetInsurance(boolean age, boolean smoker, boolean sal) {
        return (age == true && smoker == false && sal == true);
    }

    @Override
    public boolean smoker(char yesNo) {
        return (yesNo == 'y');
    }
}
